package com.fuchen.academic.convertor;

import org.springframework.core.convert.converter.Converter;

import com.fuchen.academic.util.StringUtil;

public class IntegerConvertor implements Converter<String, Integer> {

	@Override
	public Integer convert(String arg0) {
		if(StringUtil.isNotEmpty(arg0)){
			return Integer.parseInt(arg0);
		}
		return null;
	}

}
